﻿using AutoMapper;
using ScaffoldDemo.AutoMapper;
using ScaffoldWeb.Infrastructure;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace ScaffoldWeb
{
    public class MvcApplication : System.Web.HttpApplication
    {
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            RouteConfig.RegisterRoutes(RouteTable.Routes);

            UnityConfigure.RegisterContainer();

            AutoMapperConfig.Init();

            log4net.Config.XmlConfigurator.Configure(new FileInfo("~/log4net.config"));
        }
    }
}
